import logo from '@/assets/images/minelogo.svg';
import { connect } from 'react-redux';

const Logo = (props: any) => {
	const { isCollapse } = props;
	return (
		<div className='logo-box'>
			<img src={logo} alt='logo' className='logo-img' />
			{!isCollapse ? <h2 className='logo-text'>Majom</h2> : null}
		</div>
	);
};

const mapStateToProps = (state: any) => state.menu;
export default connect(mapStateToProps)(Logo);
